import { Map, fromJS } from 'immutable'
const defaultState = Map({
    doctor: fromJS({
        "hospitalid": "",
        "id": "",
        "name": "",
        "info": "",
        "hospital": "",
        "doctors": []
    })
})

const reducer = (state = defaultState, action) => {
    switch(action.type) {
        case 'loadDataTeamHome':
            return state.set('doctor', action.list)
        default:
            return state
    }
}
export default reducer